package com.cloudlead.plugin.scheduler.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import java.lang.Long;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EScheduleJobInstance is a Querydsl bean type
 */
@Label("计划任务实例")
public class EScheduleJobInstance extends AbstractIdEntity<String> {

    private static final long serialVersionUID =289731747305023L;    
    @Size(max=24)
    @Label("编号")
    @NotNull(groups={UpdateCheck.class})
    private String id;

    @Size(max=24)
    @Label("所属任务")
    @NotNull
    private String jobId;

    @Label("开始时间")
    private Long startTime;

    @Size(max=10)
    @Label("任务实例状态")
    @NotNull
    private String status;

    @Label("停止时间")
    private Long stopTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getStopTime() {
        return stopTime;
    }

    public void setStopTime(Long stopTime) {
        this.stopTime = stopTime;
    }

    public String toString() {
         return String.format("EScheduleJobInstance { id : %s,jobId : %s,startTime : %s,status : %s,stopTime : %s }",id,jobId,startTime,status,stopTime);
    }

}

